package com.henu.acmrating.service;

import com.henu.acmrating.dao.WeekStarMapper;
import com.henu.acmrating.pojo.WeekStar;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class WeekStarService{

    @Resource
    private WeekStarMapper weekStarMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return weekStarMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(WeekStar record) {
        return weekStarMapper.insert(record);
    }

    
    public int insertOrUpdate(WeekStar record) {
        return weekStarMapper.insertOrUpdate(record);
    }

    
    public int insertOrUpdateSelective(WeekStar record) {
        return weekStarMapper.insertOrUpdateSelective(record);
    }

    
    public int insertSelective(WeekStar record) {
        return weekStarMapper.insertSelective(record);
    }

    
    public WeekStar selectByPrimaryKey(Integer id) {
        return weekStarMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(WeekStar record) {
        return weekStarMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(WeekStar record) {
        return weekStarMapper.updateByPrimaryKey(record);
    }

    
    public int updateBatch(List<WeekStar> list) {
        return weekStarMapper.updateBatch(list);
    }

    
    public int batchInsert(List<WeekStar> list) {
        return weekStarMapper.batchInsert(list);
    }

    public List<WeekStar> selectAll() {
        return weekStarMapper.selectAll();
    }
}
